text = "\getbuffer[MyText]",
]
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue)
;
\stopMPcode
\egroup
\startoverlay
{\scale[height=\htdp\scratchbo
er[MyText]
> \definedfont[name:texgyrepagellabold*default]foo f o o%
> \stopbuffer
>
> \startbuffer[MyText]
> \framed[align=normal,frame=off]{\input{tufte}}%
> \stopbuffer
>
> \setbox\scratchbox\hbox\bgroup
> \startMPcode
> draw lmt_outline [
ox\scratchbox\hbox\bgroup
\startMPcode
draw lmt_outline [
kind = "outline",
text = "\getbuffer[MyText]",
]
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue)
normalization on the
way]):
\definefontfamily[mainface][rm][EBGaramond]
\setupbodyfont[mainface, 500pt]
\definecolor [tred] [r=1,t=.5,a=1]
\definecolor [tblue] [b=1,t=.25,a=1]
\starttext
\startTEXpage[offset=1ex]
\startoverlay
{\color[tred]{Ά}}
{\color[tblue]{Ά}}
\stopoverlay
]normal \it italic \bf bold \bi bolditalic}
\startoverlay
{\switchtobodyfont[adobesource]this is a test}
{\red\switchtobodyfont[adobesourcedisplay]this is a test}
\stopoverlay
\startoverlay
{\switchtobodyfont[adobesource]\bf this is a test}
{\red\switchtobodyfont[adobesourcedisplay]\bf
fset=1ts]
> \startcombination[1*3]
> {\startoverlay
> {\vtop{\showmakeup[space]\hsize #1mm\ttest
> \samplefile{tufte}}}
> {\vtop{\showmakeup[space]\hsize #1mm\rtest
> \setupalign[granular]\samplefile{tufte}}}
> \stopoverla
]
\definecolor[rtest][a=1,t=.5,r=1]
\dostepwiserecurse{80}{120}{1}{
\startTEXpage[offset=1ts]
\startcombination[1*3]
{\startoverlay
{\vtop{\showmakeup[space]\hsize #1mm\ttest
\samplefile{tufte}}}
{\vtop{\showmakeup[space]\hsize #1mm\rtest
uacode
\setupmathematics[hz=yes]
\startbuffer \showglyphs
\dorecurse{20}{\strut test $x + y/2 - w = 10$ }\unskip
\stopbuffer
\definecolor[tgreen][g=1,t=.5,a=1]
\definecolor[tred] [r=1,t=.5,a=1]
\startTEXpage[offset=5dk]
\startoverlay
{\ruledvbox to 5cm{\setupalign
[tolerant,stretch]\
finehspace[tnumber][0.5em]
\startsetups [fheader]
\startframed[width=max,frame=off]
\startoverlay
{\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-15795
ffer[b]
The
control sequence at the end of the top line of your error message
was never
\def'ed.
You can just continue as I'll forget about whatever was undefined.
It looks like \stopoverlay is not known!!! but \startoverlay is
recognised!
On 2/24/21 7:44 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 24.02.2021 um 19:23:
>> [...]
>>\starttext
>> \startTEXpage[offset=1em]
>>\startoverlay
>> \dostepwiserecurse{25}{95}{5}
>>{{\recurselevel\ }}
>
Pablo Rodriguez schrieb am 24.02.2021 um 19:23:
Dear list,
I have the following sample:
\starttext
\startTEXpage[offset=1em]
\startoverlay
\dostepwiserecurse{25}{95}{5}
{{\recurselevel\ }}
\stopoverlay
\stopTEXpage
\stoptext
Which is the right
Dear list,
I have the following sample:
\starttext
\startTEXpage[offset=1em]
\startoverlay
\dostepwiserecurse{25}{95}{5}
{{\recurselevel\ }}
\stopoverlay
\stopTEXpage
\stoptext
Which is the right way to loop an overlay?
Many thanks for your help
tufte }}
\def\DemoC#1{\startTEXpage[offset=10pt]\DemoA{#1pt}\blank\DemoB{#1pt}\blank#1pt\stopTEXpage}
\starttext
\dostepwiserecurse{300}{600}{10}{
\startTEXpage[offset=10pt]
\startoverlay
{\DemoA{#1pt}}
{\DemoB{#1pt}}
\stopoverlay
=\MemoirChapter,
]
%\define[2]\MemoirChapter
% {\startoverlay
% {#1}
% {#2}
% \stopoverlay}
\define[2]\MemoirChapter
{\framed[frame=off,width=broad,align={middle,lohi}]
{\startoverlay
{\raise1.5ex\hbox
]
\setuphead[chapter]
[
numberstyle={\switchtobodyfont[48pt]},
numbercolor=gray,
alternative=command,
command=\MemoirChapter,
]
\define[2]\MemoirChapter
{\framed[frame=off,width=broad,align=middle]
{\startoverlay
I meant to include an example of what I mean, since at least it seems to
work (am including just the definition part of your example), So at
least I can get middle and right alignment.
\define[2]\MemoirChapter
{\midaligned{\startoverlay
{#1}
{#2}
\stopoverlay}}
Julian
On 17
,
command=\MemoirChapter,
]
\define[2]\MemoirChapter%
{\startoverlay
{#1}
{#2}
\stopoverlay}
\starttext
\startchapter[title={This is a test}]
\stopchapter
\stoptext
Overlays don't allow tuning the location...for that you need layers. See the
chapter
[
numberstyle={\switchtobodyfont[48pt]},
numbercolor=gray,
alternative=command,
command=\MemoirChapter,
]
\define[2]\MemoirChapter%
{\startoverlay
{#1}
{#2}
\stopoverlay}
\starttext
\startchapter[title={This is a test}
andard tex but
it's more a gimmick than useful:
\starttext
% at : fraction of design size
% sa : fraction of current bodyfont size
% ht : fraction of font ascender
% cp : fraction of height of glyph X
\starttexdefinition ShowThem #1#2#3
\startoverlay
{\color[trace:r]{\definedfont[#1*
ne,two]
\startoverlay
{\raise2\strutdp\outputstreambox[one]}
{\raise0\strutdp\outputstreambox[two]}
\stopoverlay
\startTwoLang
\input lorem
\nextTwoLang
\input davis
\stopTwoLang
\starttabulate[|p|p|]
\NC\input lorem
\NC\input davis
\NC\NR
\stoptabulate
\bTABLE[frame=off,align=yes,split=yes
setbounds currentpicture to boundingbox halfcircle scaled 7cm rotated
> 180 ;
> \stopuseMPgraphic
>
> \startuseMPgraphic{followtokens-2}
> path RotPath ; RotPath := halfcircle scaled 6cm rotated 180 ;
> setbounds currentpicture to boundingbox halfcircle scale
180 ;
\stopuseMPgraphic
\startoverlay
{\startuseMPgraphic{followtokens}\includeMPgraphic{followtokens-1}\stopuseMPgraphic
\followtokens{\strut Dies ist ein anderer Text\strut}}
{\startuseMPgraphic{followtokens}\includeMPgraphic{followtokens-2}\stopuseMPgraphic
\followtokens{\strut
t] SUB-TITLE}%
\stopoverlay}
\stoptext
A question about this code. The final } is equivalent to \stop and closes to
\start at the beginning.
But I canot see the \stopoverlay matching a \startoverlay, as I would have
expected.
What am I missing here?
Hans
ecurse{5}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{2}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{7}{Line \recurselevel\par}\pushoutputstream
\stopoutputstream
\synchronizestreams[one,two]
\startoverlay
{\outputstreambox[one]}
{\raise2\
ne,two]
\startoverlay
{\outputstreambox[one]}
{\raise2\strutdp\outputstreambox[two]}
\stopoverlay
\stoptext
Only the mechanism to create pages/columns for the stream content is
missing.
Can you elaborate a bit? I’m having the following use case in mind:
exactly two streams, one on even-nu
magic to do this for single lines
(creating zero width hboxes etc.), I would really like to typeset a
complete paragraph on a poster.
Is there any magic that would allow me to do that?
\starttext
\startbuffer[test]
\input tufte
\stopbuffer
\startoverlay
{\framed[align=normal
;
\stopuseMPgraphic}
\starttext
\startoverlay
{\followtokengraphicscale{10cm}%%
\followtokenscentred{General socioeconomic cultural and environmental
conditions}}
{\followtokengraphicscale{8cm}%%
\followtokenscentred{Living and working conditions}}
{\followtokengraphicscale{6cm
Hi, Wolfgang.
I tried dropping in the Lua code, but it does not extract the text:
\define[1]\StyleChapter{%
\StyleChapterFramed{%
\framed[align=right, frame=off]{%
\startoverlay
\color[ColourSecondaryLightest]{%
\cldcontext{string.sub(#1,0,1
Am 21.09.2013 um 20:46 schrieb Thangalin thanga...@gmail.com:
Hi, Wolfgang.
I tried dropping in the Lua code, but it does not extract the text:
\define[1]\StyleChapter{%
\StyleChapterFramed{%
\framed[align=right, frame=off]{%
\startoverlay
\color
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup
\startstandardmakeup
\dontleavehmode\startoverlay
{\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup
\stoptext
For some reason
][align=middle]
\starttext
\startstandardmakeup
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup
\startstandardmakeup
\dontleavehmode\startoverlay
{\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay
=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}
\stopstandardmakeup
\startstandardmakeup
\dontleavehmode\startoverlay{\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}}{\sfserif\color[red
[…]}.
Many thanks for your gast reply, Wolfgang.
I‘m afraid that the frame itself lifts the image. Frame and overlay lift
the image also. PDF at http://ousia.tk/overlay.pdf.
You have to write \smash[d]{\startoverlay …\stopoverlay} to get the same output
with the overlay.
The \framed command isn’t
On 21/07/13 20:29, Wolfgang Schuster wrote:
Am 21.07.2013 um 19:55 schrieb Pablo Rodríguez oi...@web.de:
[...]
I‘m afraid that the frame itself lifts the image. Frame and overlay lift
the image also. PDF at http://ousia.tk/overlay.pdf.
You have to write \smash[d]{\startoverlay …\stopoverlay
=max,align={middle,low},foregroundstyle=\ss\bfb,offset=1ex]
\startoverlay
{\leftaligned {Left}}
{\midaligned {Middle}}
{\rightaligned{Right}}
\stopoverlay
\stopframed
\stopsetups
,align={middle,low},foregroundstyle=\ss\bfb,offset=1ex]
\startoverlay
{\leftaligned {Left}}
{\midaligned {Middle}}
{\rightaligned{Right}}
\stopoverlay
\stopframed
\stopsetups
\setupheadertexts[\texsetup{header}]
Wolfgang
[corner=09,width=broad,align=center,height=\headerheight]%
% {\syllabusheader}}]
\startsetups[header]
\startframed[corner=09,width=max,height=max,align={middle,low},foregroundstyle=\ss\bfb,offset=1ex]
\startoverlay
{\leftaligned {Left}}
{\midaligned {Middle
\startoverlay
{\leftaligned {Left}}
{\midaligned {Middle}}
{\rightaligned{Right}}
\stopoverlay
\egroup
\stopsetups
\setupheadertexts[\setups{header}]
When you have a longer text for all three fields
withcolor red ;
endfig ;
\stopMPrun
\startMPrun
beginfig(6) ;
fill fullcircle scaled 15mm withcolor green ;
endfig ;
\stopMPrun
\startoverlay
{\externalfigure [mprun.foo.1
;
\stopMPrun
\startMPrun
beginfig(6) ;
fill fullcircle scaled 15mm withcolor green ;
endfig ;
\stopMPrun
\startoverlay
{\externalfigure [mprun.foo.1]}
{\externalfigure [mprun.6]}
{\externalfigure
]
\starttext
\startoverlay
{\strut\red m}
{\strut\green a}
{\strut\blue l}
\stopoverlay
\stoptext
After you do know now what overlays are I come to the real overlay mechanism.
Overlays are created with the \defineoverlay command which takes a name for the
overlay and its content
and vertical centered.
\setupbodyfont[40pt]
\starttext
\startoverlay
{\strut\red m}
{\strut\green a}
{\strut\blue l}
\stopoverlay
\stoptext
After you do know now what overlays are I come to the real overlay mechanism.
Overlays are created with the \defineoverlay command which takes a name
horizontal and vertical centered.
\setupbodyfont[40pt]
\starttext
\startoverlay
{\strut\red m}
{\strut\green a}
{\strut\blue l}
\stopoverlay
\stoptext
After you do know now what overlays are I come to the real overlay mechanism.
Overlays are created with the \defineoverlay command
example are only one method to set
the content for each frame (it emulates the \startoverlay and \startcombination
input), when you use a loop you have to use \frame{…} or \startframe …
\stopframe
to set the content for each frame.
Example:
\usemodule[animation]
\setupinteraction[state=start
Thank you for answer,
I have discovered, that \tbox does the job for me.
\startoverlay
{\leftaligned{nazev}}
{\midaligned{\pagenumber /\totalnumberofpages}}
{\rightaligned{\tbox{\externalfigure[jc_logo_small][width=4cm]}}}
\stopoverlay
regards
Jan
Dne Wed, 30 May 2012
\framed[frame=off,bottomframe=on,width=broad,align=flushleft]{\ss No part of
this document may be reproduced, modified or disclosed to third parties in
any form without the prior written permission of COMPANY. This document is
copyrighted by COMPANY with all rights reserved.}
\startoverlay
Am 05.03.2011 um 23:01 schrieb C.:
Good evening,
How can I place left aligned and centered text on one line?
So that the centered text is in the same place as with \startaligned[middle]
\starttext
\startoverlay
{\leftaligned{left}}
{\midaligned{middle}}
% {\rightaligned{right
] [state=stop,global=yes]
\defineproperty [2] [layer] [state=stop,global=yes]
\defineproperty [3] [layer] [state=stop,global=yes]
\defineproperty [4] [layer] [state=stop,global=yes]
\starttexdefinition properties
\startoverlay
{\startproperty[1]\overlayfigure{cow}\stopproperty
:
\setupinteraction[state=start]
\defineproperty [1] [layer] [state=stop,global=yes]
\defineproperty [2] [layer] [state=stop,global=yes]
\defineproperty [3] [layer] [state=stop,global=yes]
\defineproperty [4] [layer] [state=stop,global=yes]
\starttexdefinition properties
\startoverlay
]
\defineproperty [4] [layer] [state=stop,global=yes]
\starttexdefinition properties
\startoverlay
{\startproperty[1]\overlayfigure{cow}\stopproperty}
{\startproperty[2]\overlayfigure{mill}\stopproperty}
{\startproperty[3]\overlayfigure{hacker}\stopproperty}
{\startproperty[4
] contains a few example, the environment
is inspired by \startoverlay/\stopoverlay but it needs a alternative
method to allow loops (look at the third example in this file).
The second test file shows which navigation buttons i want for such
a module, the are “first frame”, “previous frame”, “play
[MinBase][name:minionpro-regular*base]
\definefont[MinNode][name:minionpro-regular*node]
% \definefont[MinBase][Serif*base]
% \definefont[MinNode][Serif*node]
\starttext
\startbuffer[Kerning]
\startlines
Wer
Tat
Ver
VAI
\stoplines
\stopbuffer
\startTEXpage
\startoverlay
{\hbox
\startTEXpage
\startoverlay
{\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning]
{\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning]
\stopoverlay
\stopTEXpage
\stoptext
ok, fixed in next beta (if your're in a hurry i can send you a
patch); bug was introduced when finishing
-regular*base]
\definefont[MinNode][name:minionpro-regular*node]
% \definefont[MinBase][Serif*base]
% \definefont[MinNode][Serif*node]
\starttext
\startbuffer[Kerning]
\startlines
Wer
Tat
Ver
VAI
\stoplines
\stopbuffer
\startTEXpage
\startoverlay
{\hbox to 1cm {\vbox
=node]
\definefontfeature[nonekerned][default][mode=base,kern=no]
\starttext
\startbuffer[KernTest]
\startlines
Av, AV,
LT, LV, Ly,
TA, To, Ty, Te, T.
Va, V.,
Ya, Yo, Y.
\stoplines
\stopbuffer
\startTEXpage % Minion Pro
\startoverlay
{\vbox{\red \definedfont[name:MinionPro
??? ??? wrote:
Dear all,
I'd like to two figures in one place.
There is a base figure, and
I'd like to put other figures on the base figure case by case.
base file + figure 1,
base file + figure 2,
The figures are created using metafun.
Thank you for help.
\startoverlay
\stopnotmode
\startopposite \stopopposite
\startoverlay{text}{text} \stopoverlay
\startoverview[names] \stopoverview
\startpacked[blank] \stoppacked
\startparagraph \stopparagraph
\startpositioning \stoppositioning
\startpostponing \stoppostponing
\startproduct file \stopproduct
\startprofile[names
=yes,mode=node]
\definefontfeature
[default-none]
[script=dftl,language=dflt,liga=yes,kern=no, tlig=yes,trep=yes]
\startoverlay
{\vtop{\color[red] {\font\test=name:lmroman12regular*default-node
\test \input ward \input zapf \input linden }}}
{\vtop{\color[green]{\font\test
; and it is not parametrized.
Someone knows the trick?
perhaps with an overlay?
--
\def\TightFrame
{\startoverlay
{\framed[width=\overlaywidth,height=\dimexpr(\overlayheight -
5ex)]{}}{}\stopoverlay} \defineoverlay[TightFrame][\TightFrame
with an overlay?
--
\def\TightFrame
{\startoverlay
{\framed[width=\overlaywidth,height=\dimexpr(\overlayheight -
5ex)]{}}{}\stopoverlay}
\defineoverlay[TightFrame][\TightFrame]
\starttext
\startframedtext [background=TightFrame,frame=off]
Hallo
; and it is not parametrized.
Someone knows the trick?
perhaps with an overlay?
--
\def\TightFrame
{\startoverlay
{\framed[width=\overlaywidth,height=\dimexpr(\overlayheight -
5ex)]{}}{}\stopoverlay} \defineoverlay[TightFrame][\TightFrame
according to mark number - it is correct (not sure if it is
implemented?).
it's a kind of bug; how about swapping the order: (page-lyr.tex)
\def\settextpagecontent#1#2#3% #2 and #3 will disappear
{\doifelselayerdata{OTRTEXT}
{\setbox#1\hbox to \makeupwidth
{\startoverlay
items according to mark number - it is correct (not sure if it is
implemented?).
it's a kind of bug; how about swapping the order: (page-lyr.tex)
\def\settextpagecontent#1#2#3% #2 and #3 will disappear
{\doifelselayerdata{OTRTEXT}
{\setbox#1\hbox to \makeupwidth
{\startoverlay
consists of the remaining shapes (of which two are invisible because
their shape is defined as `node'). My idea is to put one flowchart on top
of the other.
Is this possible? And if it is, how should I do this?
B.t.w. using `offset=overlay' in \setupFLOWcharts gives a syntax error.
\startoverlay
65 matches
Mail list logo